-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: allow Omnichannel Chats to be placed onHold even when the last message is not from the Agent #30527
chore: allow Omnichannel Chats to be placed onHold even when the last message is not from the Agent #30527
Conversation
…n hold by the agent even when the last message was not sent by him
|
Codecov Report
@@ Coverage Diff @@
## develop #30527 +/- ##
===========================================
- Coverage 51.21% 49.42% -1.80%
===========================================
Files 814 777 -37
Lines 15050 14835 -215
Branches 2732 2729 -3
===========================================
- Hits 7708 7332 -376
- Misses 6933 7094 +161
Partials 409 409
Flags with carried forward coverage won't be shown. Click here to find out more. |
…or or the new one, enabling Agents to place chats onHold at anytime
…he translations to show the description
5c468dc
to
d090dbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! If you can, on your editor install Prettier & Prettier-eslint (if on vscode) so you can automatically fix the lint errors that popped up :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cabaceira please fix the TS and Lint errors
apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last change needed, plz take a look at the linting error here https://github.com/RocketChat/Rocket.Chat/pull/30527/files#diff-a81e0c44bceca696d0def37fd4791b7bf1ac890c98f571dfd184dd2f4f6b126eR314
…refactored names of constants, reviewed lint
49509fd
to
96cf998
Compare
apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.internalService.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.internalService.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.internalService.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.internalService.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.internalService.ts
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx
Outdated
Show resolved
Hide resolved
ed45988
to
284740d
Compare
88ac9c0
to
74110a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go with a more generic error to cover both scenarios. Also, pls add this new error to the translation files so we get a nice string there :)
apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.internalService.ts
Outdated
Show resolved
Hide resolved
…ead of creating new visitor
Stale, PR Changed a lot since last review
Currently, the behaviour of our Rocket.Chat Omnichannel only allows to place On-Hold chats where the last message was sent by the Agent. Amerisave (and other customers) asked for the ability to place chats on hold at anytime, not only when the agent was the last one that has sent a message.
The reason for this behaviour is that our code actually enforces this condition (that the agent was the last one to have sent a message) to show the option to place the chat on-hold.
Proposed changes
The changes proposed on the current PR involve removing the condition (that the agent was the last one to have sent a message) from our code.
Issue(s)
The Jira issue that is related to this PR is CC-13
Steps to test or reproduce
Further comments
Showing new settings and the interdependency between them.
video-new-settings-clean.mov
Showing both options working individually, depending on the settings.
video-settings-working.mov
CC-13
PROSVC-23